Skip to content

refactor: move Story and Series UI-bus listeners off Agent Mode - #55

Merged
IAnMove merged 2 commits into
mainfrom
refactor/paso3-ui-bus
Sep 1, 2026
Merged

refactor: move Story and Series UI-bus listeners off Agent Mode#55
IAnMove merged 2 commits into
mainfrom
refactor/paso3-ui-bus

Conversation

@IAnMove

@IAnMove IAnMove commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Qué

PR pequeño Codex: mover los 4 listeners de agentUiBus a superficie neutral.

Incluye canciones alternativas (y Studio/SFX) si aún no están en main. Mezclar este PR en main, no en una rama apilada.

SeriesEpisodePanel, SeriesLabPanel, SeriesReviewPanel y StoryLabPanel importan lib/uiBus. features/agent/agentUiBus.ts reexporta. SLICE_AGENT_IMPORT_ALLOWLIST queda vacía.

Gates locales en esta rama: useStore.setState agent 0, slice→agent 0, legacy 0.

Dueño del merge: humano. No mezclar #48. Paso 3 no se declara cerrado hasta que main tenga esos tres ceros y revisión humana.


Note

Medium Risk
Touches generation queueing, Hunyuan3D jobs, and videoclip FFmpeg mounts across two execution paths; behavior should be equivalent but regressions in Studio prep or alternative-song flow would be user-visible.

Overview
This PR centralizes agent side effects behind applicationAdapters so the legacy executeAgentActions runner and the capability registry share the same paths, and product slices no longer depend on features/agent.

Studio and videoclips logic moves out of agentActions.ts, studioGuidance.ts, and alternativeSongActions.ts into features/studio and features/videoclips (commandsactions returning CommandResult → thin adapters). The StudioAdapter gains prepareVideo/prepareImage/prepareAudio/prepare3d, startGeneration, references, LoRAs, and SFX pack; a new VideoclipAdapter handles attach/mount alternative songs with execution reuse on mount. studioCapabilities drops the lazy agentActions bridge and calls context.adapters.studio.* directly.

UI bus implementation relocates to lib/uiBus.ts; agentUiBus re-exports it. Story/Series lab panels import ../../lib/uiBus instead of the agent module.

Contract tests update expectations: no feature slice → agent imports, zero legacy capability executors (all 73 go through adapters), and createDefaultApplicationAdapters includes videoclips.

Reviewed by Cursor Bugbot for commit ce8bf90. Configure here.

The four product-slice listeners now import lib/uiBus. agentUiBus
reexports that module so Agent Mode internals stay stable.
SLICE_AGENT_IMPORT_ALLOWLIST is empty.
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

PR Review — Loreframe Studio

Risk: low
Scope: 7 file(s); +361/-365; React UI

Automated review from scripts/analyze_pr.py. This is a heuristic pass (no LLM) so humans still own the merge decision.

Findings

  • low — UI changed — rebuild before merge
    Run cd ui && npm run build (CI already does this). Pinokio Update rebuilds for end users; keep ui/dist untracked.

Changed files

  • added: ui/src/lib/uiBus.ts
  • modified: ui/src/features/agent/agentUiBus.ts, ui/src/features/series/SeriesEpisodePanel.tsx, ui/src/features/series/SeriesLabPanel.tsx, ui/src/features/series/SeriesReviewPanel.tsx, ui/src/features/stories/StoryLabPanel.tsx, ui/tests/agentCapabilityPorts.test.mjs

CONTRIBUTING checklist

  • python scripts/verify_clean_repo.py
  • python -m compileall -q app/services app/launch.py scripts
  • cd ui && npm run build if the UI changed
  • No weights, CivitAI sidecars, or generated guides
  • Stays local-first (no required accounts / telemetry)

Posted by the repo PR review workflow. Re-runs on each push to the PR.

@IAnMove

IAnMove commented Sep 1, 2026

Copy link
Copy Markdown
Owner Author

cursor review

Mezclar en main después de #52, #53 y #54, no en una rama apilada.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit ce8bf90. Configure here.

@IAnMove
IAnMove merged commit de98622 into main Sep 1, 2026
4 checks passed
@IAnMove
IAnMove deleted the refactor/paso3-ui-bus branch September 5, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant